<?php if (get_option('headlines_active', "on") == "on") : ?>
<!-- begin headlines text -->
<div class="headlines">
	<div class="headlines_content clearfix">
		<div class="headlines_image">
			<div class="headlines_icon">
				<img src="<?php bloginfo('template_url'); ?>/images/icons/started.png" width="43" alt=""/>
			</div>
			<div class="headlines_icon_text">
				<h4><?php echo get_option('headlines_title', 'Lastest Updates:'); ?></h4>
			</div>
		</div>
		<div class="headlines_text">
		
		
				<ul id="news_ticker">
						<?php
						global $post;
						 
						$cat_id = get_option("headlines_cat_id");
						$item_limit = get_option("headlines_limit", 10);
						$myposts = get_posts('numberposts='.$item_limit.'&category='.$cat_id);
						$check = 0;
						foreach($myposts as $post) :
						setup_postdata($post);
						?>
						
						<li<?php if($check > 0){ echo " style=\"display:none;\""; } ?>><a href="<?php the_permalink(); ?>"><span><?php the_title(); ?><span class="bullhorn"><img src="<?php bloginfo('template_url'); ?>/images/icons/bullhorn.png" alt=""/></span></span></a></li>
						
						<?php $check++; endforeach; ?>
				</ul>

		</div>
	</div>
</div>
<!-- end headlines text -->
<?php endif; ?>